package org.john.common.exception;

public class EnhanceRuntimeException extends RuntimeException {

	private static final long serialVersionUID = -5985428146066366070L;

	public static final int DEFAULT_HTTP_STATUS_CODE = 400;

	protected int httpStatusCode = DEFAULT_HTTP_STATUS_CODE;

	public EnhanceRuntimeException(String message) {
		super(message);
	}

	public EnhanceRuntimeException(String message, int httpStatusCode) {
		super(message);
		this.httpStatusCode = httpStatusCode;
	}

	public EnhanceRuntimeException(Throwable cause) {
		super(cause);
	}

	public EnhanceRuntimeException(Throwable cause, int httpStatusCode) {
		super(cause);
		this.httpStatusCode = httpStatusCode;
	}

	public EnhanceRuntimeException(String message, Throwable cause) {
		super(message, cause);
	}

	public EnhanceRuntimeException(String message, Throwable cause, int httpStatusCode) {
		super(message, cause);
		this.httpStatusCode = httpStatusCode;
	}

	public int getHttpStatusCode() {
		return this.httpStatusCode;
	}

}
